﻿using System;

namespace Bpms.Cache
{
    /// <summary>
    /// 项目相关缓存
    /// </summary>
    public class ProjectCache : DefaultCache
    {
        private int _timeOut = 10; // 默认缓存存活期为10分钟

        public override int TimeOut
        {
            get
            {
                return (_timeOut > 0 && _timeOut < 9999) ? _timeOut : 10;
            }
            set
            {
                this._timeOut = (value > 0 && value < 9999) ? value : 10;
            }
        }
    }
}
